module.exports = {
    publicPath: './',
    // publicPath: process.env.VUE_APP_SRC,
    productionSourceMap: process.env.VUE_APP_MODE != 'production',
    outputDir: process.env.outputDir,
    configureWebpack: {
        resolve: {
            alias: {
                'assets': '@/assets',
                'common': '@/common',
                'components': '@/components',
                'network': '@/network',
                'views': '@/views',
                'api': '@/api',
                'base': '@/base',
                'mixins': '@/mixins',
            }
        }
    },
    devServer: {
        // host: '192.168.0.108',
        // port: 8080,
        // disableHostCheck: true,
        proxy: {
            '/api': {
                 target: "https://swplus-test.shhd.info/",
         //       target: 'https://swplus.shhd.info/',

                changeOrigin: true,
                secure: false,
                pathRewrite: {
            //         '^/api': 'https://swplus.shhd.info/'
                     '^/api': 'https://swplus-test.shhd.info/'
                }
            }
        },
  },
  
}